﻿@using Esb.Domain.DomainObjects
@model List<ServiceDo>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "服务管理";
}
@Html.Raw(ViewBag.Scripts)
<div style="background: #205081; color: #FFFFFF; padding: 5px;" class="Header">
    <h2 style="float: left; margin-left: 20px;">
        <span style="font-size: 20px; font-weight: bold;">[ ESB治理中心后台 ]</span>
    </h2>
    <div style="float: left; margin-top: 30px; margin-left: 50px;">
        <a href="#">服务管理</a> <a href="ManageService/AddService" target="_blank">新增服务</a></div>
    <div style="clear: both;">
    </div>
</div>
<div style="border: 1px solid #cccccc; margin: 5px; background: #ebf2f9; padding: 5px;">
    查询条件：<br />
    服务应用Id：<input type="text" name="AppId" /><br />
    服务路由：<input type="text" name="ServiceRoute" /><br />
    服务描述：<input type="text" name="ServiceDescription" /><br />
    <input type="submit" value="查询服务" />
</div>
<div style="border-top: 1px solid #cccccc; margin-top: 10px;">
    <table class="Table" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width: 100px;">
                服务注册Id
            </td>
            <td style="width: 100px;">
                服务应用Id
            </td>
            <td style="width: 300px;">
                服务路由
            </td>
            <td style="width: 300px;">
                服务描述
            </td>
            <td style="width: 200px;">
                处理
            </td>
        </tr>
        @foreach (ServiceDo service in Model)
        {
            <tr>
                <td>
                    @service.Id
                </td>
                <td>
                    @service.ApplicationId
                </td>
                <td>
                    @service.ServiceRouteName
                </td>
                <td>
                    @service.ServiceDescription
                </td>
                <td>
                    <a href="Service/?id=@service.Id" target="_blank">[处理]</a> <a href="ServiceStatis/?id=@service.Id" target="_blank">
                        [15分钟统计]</a>
                </td>
            </tr>
        }
    </table>
</div>
